package imper.graphic;

import java.util.ArrayList;
import java.util.List;

public class ButtonManager
{
	protected List<Clickable> _listClickable;

	public ButtonManager()
	{
		_listClickable = new ArrayList<Clickable>();
	}

	public void click(int pX, int pY)
	{
		for (Clickable clickable : _listClickable)
		{
			clickable.click(pX, pY);
		}
	}

	public void addClickable(Clickable pClickable)
	{
		_listClickable.add(pClickable);
	}

}
